package xt.outfood.filter;


import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 自定义ip拦截器，使用HandlerInterceptor,此时spring并不加载，需要进行映射配置才会加载
 * @author xiaozhua
 * @date 2022/9/14 9:54
 */
public class IpCountInterceptor implements HandlerInterceptor {
//    @Autowired
//    private IpCountService ipCountService;
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        ipCountService.count();
//        return true;
//    }

}
